﻿namespace DynamicEditProcessing
{
    using System;

    using Microsoft.SharePoint.WebPartPages;

    public partial class ListGUIDProcessing : WebPartPage
    {
        #region Methods

        protected void Lfwp_OnInit( object sender, EventArgs e )
        {
            string listId = Page.Request.QueryString[ "List" ];
            string itemId = Page.Request.QueryString[ "ID" ];

            ListFormWebPart lfwp = ( ListFormWebPart ) sender;
            lfwp.ListName = listId;
            lfwp.ListItemId = Convert.ToInt32( itemId );
        }

        #endregion Methods
    }
}